home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / cserial.zip / MAKEFILE.ZTC < prev    next >
Text File  |  1990-04-04  |  2KB  |  83 lines

  1. #
  2. #            Makefile for various Serial Port Handler Programs
  3. #
  4. #                               8250xxx.*
  5. #
  6. #                             Written for
  7. #
  8. #                        The Zortech C Compiler
  9. #
  10. #                            Copyright 1989
  11. #
  12. #                            John Birchfield
  13. #
  14. #
  15. #   MONITOR  - a simple line monitor program
  16. #
  17. #   MDM_INIT - a modem initialization program
  18. #
  19. #   VT100    - self explanitory
  20. #
  21. #    Invoke with -dDLC if using the Zortech v2.0 compiler
  22. #
  23. #    Invoke with CFLAGS=-dLINT <modulename> to invoke Formal Parameter
  24. #    checking a la ANSI C...
  25. #    or if you want both an exact invokation to compile the Monitor
  26. #    module would be:
  27. #
  28. #        make "CFLAGS=-dLINT -dDLC -o" monitor
  29.  
  30. #CFLAGS    =    -mti -J -S -DLINT -DDLC -DSTANDALONE
  31. CFLAGS    =    -g   -J -S -DLINT -DDLC -DSTANDALONE
  32.  
  33. IOBJS =        mdm_init.obj 8250xon.obj timer.obj queue.obj \
  34.             ctrl_brk.obj
  35.  
  36. MOBJS    =    monitor.obj options.obj 8250xon.obj queue.obj \
  37.              timer.obj ctrl_brk.obj _kb.obj
  38.  
  39. VOBJS    =    vt100.obj queue.obj screen.obj 8250xon.obj \
  40.              ctrl_brk.obj _kb.obj timer.obj options.obj
  41.  
  42. .c.obj : 
  43.     ztc -c $(CFLAGS) $<
  44.  
  45.  
  46.  
  47. all          : drop_dtr mdm_init laser monitor vt100
  48.  
  49. drop_dtr     : drop_dtr.com
  50.  
  51. mdm_init     : mdm_init.com
  52.  
  53. monitor      : monitor.com
  54.  
  55. vt100        : vt100.com
  56.  
  57. drop_dtr.com : drop_dtr.obj timer.obj
  58.     ztc $(CFLAGS) drop_dtr.obj timer.obj
  59.  
  60. mdm_init.com : $(IOBJS)
  61.     ztc $(CFLAGS) $(IOBJS)
  62.  
  63. monitor.com  : $(MOBJS)
  64.     ztc -mti -omonitor $(MOBJS)
  65.  
  66. vt100.com    : $(VOBJS)
  67.     ztc $(CFLAGS) $(VOBJS)
  68.  
  69. $(MOBJS)     : 
  70.  
  71. $(VOBJS)     : 
  72.  
  73. vt100.obj    : vt100.c
  74.     ztc $(CFLAGS) -dSTANDALONE -c vt100.c
  75.  
  76. clean        :  
  77.     rm *.obj *.map
  78.  
  79. archive      : 
  80.     chmod -r comm_io.arc
  81.     pkarc -u comm_io *.c *.h  *.rsp *.cmd *.asm makefile.*
  82.     chmod -a *.c *.h *.rsp makefile.*
  83.